package com.bymboy.emos.wx.config;

import com.rabbitmq.client.ConnectionFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Package: com.bymboy.emos.wx.config
 * @ClassName: RabbitMQConfig
 * @Author: My
 * @CreateTime: 2021/10/5 15:10
 * @Description:
 */
@Configuration
public class RabbitMQConfig {

    @Bean
    public ConnectionFactory getFactory() {
        ConnectionFactory factory = new ConnectionFactory();
        //Linux主机的IP地址
        factory.setHost("192.168.101.115");
        //RabbitMQ端口号
        factory.setPort(5672);
        return factory;
    }
}
